package com.ac.api.process_parameter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ac.api.process_parameter.entity.ProcessParameter;
import com.ac.api.process_parameter.dao.ProcessParameterMapper;
import com.ac.api.process_parameter.service.ProcessParameterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 生产工艺参数表 服务实现类
 * </p>
 *
 * @author dc
 * @since 2025-06-11
 */
@Service
public class ProcessParameterServiceImpl extends ServiceImpl<ProcessParameterMapper, ProcessParameter> implements ProcessParameterService {

    @Override
    public List<ProcessParameter> list(ProcessParameter example) {
        return this.list(buildWrapper(example));
    }

    @Override
    public IPage<ProcessParameter> page(ProcessParameter example, IPage page) {
        return this.page(page,buildWrapper(example));
    }

    /**
     * 构建查询
     *
     * @param example
     * @return
     */
    private QueryWrapper<ProcessParameter> buildWrapper(ProcessParameter example) {
        QueryWrapper<ProcessParameter> wrapper     = new QueryWrapper<>();
        return wrapper;
    }

}
